summaryrefslogtreecommitdiff
path: root/frontend/app/drive/[...path]
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/app/drive/[...path]')
-rw-r--r--frontend/app/drive/[...path]/page.tsx14
1 files changed, 14 insertions, 0 deletions
diff --git a/frontend/app/drive/[...path]/page.tsx b/frontend/app/drive/[...path]/page.tsx
new file mode 100644
index 0000000..b0c6d7d
--- /dev/null
+++ b/frontend/app/drive/[...path]/page.tsx
@@ -0,0 +1,14 @@
1import { DriveDirectoryView } from "@/components/drive/DriveDirectoryView"
2import { Drive_ls } from "@/lib/drive_server"
3
4export default async function DriveDirectoryPage({
5 params,
6}: {
7 params: Promise<{ path: string[] }>
8}) {
9 const { path: pathSegments } = await params
10 const currentPath = '/' + (pathSegments?.join('/') || '')
11
12 const files = await Drive_ls(currentPath, false)
13 return <DriveDirectoryView path={currentPath} files={files} />
14} \ No newline at end of file